.html, .body {
    height: 100%;
    margin: 0;
    padding: 0;
}
.body {
    font-family: Arial, sans-serif;
    background-color: #e6e6e6;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chat-container {
    background-color: #f1eeee;
    width: 100%;
    height: 750px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    background-color: #176705;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.chat-message {
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}
.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}
.sent::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #dcf8c6 transparent transparent;
    right: -10px;
    bottom: 0;
}
.received {
    background-color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}
.received::before {
    content: '';
    position: absolute;
    width: 0;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #fff transparent transparent transparent;
    left: -10px;
    bottom: 0;
}
.chat-footer {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #f5f5f5;
    flex: 0 0 80px; /* 设置输入框区域的高度，可以根据需要调整 */
}
.chat-footer.input-container {
    display: flex;
    flex: 1;
    align-items: center;
}
.chat-footer input[type="text"] {
    width: 92%; /* 将输入框的长度修改为 100% */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
}
.chat-footer input[type="text"]:focus {
    border-color: #176705;
}
.chat-footer button {
    background-color: #176705;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.chat-footer button:hover {
    background-color: #176705;
}
.chat-footer.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
}
.chat-footer.file-upload input[type="file"] {
    display: none;
}
.chat-footer.file-upload label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif; /* 确保字体可用 */
    font-size: 20px; /* 调整字体大小，使图标更清晰 */
}
.chat-footer.file-upload label:hover {
    background-color: #e6e6e6;
}
.chat-footer.file-upload label::before {
    content: '\1F4C1'; /* 使用 Unicode 字符表示文件图标，你可以根据需要调整 */
}